<?php

namespace IDock\Insurance\QHIC\Request;

use IDock\Insurance\QHIC\Request\AllQHICRequest;
use IDock\Insurance\QHIC\Response\EPolicyDownloadResponse;
use IDock\Visitor\EPolicyDownloadVisitor;

class EPolicyDownloadRequest extends AllQHICRequest
{
    public $requestType = 'VHL0010';

    protected $response = EPolicyDownloadResponse::class;

    protected $urlTip = '下载电子保单';

    /**
     * @var  EPolicyDownloadVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'CAppNoList' => [$this->visitor->policyNo],
        ];
    }
}
